package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    List<Role> findAll();

    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    void add(Role role, Integer[] permissionIds, Integer[] menuIds);

    Role findRoleById(Integer id);

    Integer[] findPermissionIdsByRoleId(Integer id);

    Integer[] findMenuIdsByRoleId(Integer id);

    void deleteRoleById(Integer id);

    void edit(Role role, Integer[] menuIds, Integer[] permissionIds);
}
